package com.tao.aszx.manager.controller.font;


import com.tao.aszx.manager.font.service.InquireService;
import com.tao.aszx.model.entity.system.Parcels;
import com.tao.aszx.model.vo.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/font/getParcels")
public class InquireController {

    @Autowired
    InquireService inquireService;

    @GetMapping("/findParcels/{id}")
    public Result findParcels(@PathVariable Long id) {
        Parcels parcels = inquireService.findParcels(id);
        return Result.build(parcels, 200, "查询成功");
    }
}
